<?php
namespace app\home\controller;
use think\Controller;
use think\Db;
use think\validate;
class Personal extends Controller{
    public function getIndex(){
        $request=request();
        $data=Db::table("tp_user")->select();
        $new=[];
        foreach($data as $val){
            $new=$val;
        }
        return $this->fetch("personal/index",['new'=>$new]);

    }
    public function getedit(){
        $request=request();
        $data=Db::table("tp_user")->select();
        foreach($data as $val){

        }
        return $this->fetch("personal/edit",['val'=>$val]);
    }

}

